#include<stdio.h>
int main()
{
	int a = 0;
	while (scanf("%d", &a) != EOF)
	{
		while (a >= 1 && a <= 100)
		{
			if (a % 5 == 0)
				printf("YES\n");
			else
				printf("NO\n");
			break;
		}
	}
	return 0;
}
